package org.wdcode.common.codec;

import org.apache.commons.codec.net.URLCodec;
import org.wdcode.common.constants.EncodingConstants;

/**
 * URLCodec工厂 返回单例的URLCodec
 * @author WD
 * @since JDK6
 * @version 1.0 2010-06-23
 */
final class URLCodecFactory {
	// URLCodec
	private final static URLCodec	CODEC;

	/**
	 * 静态初始化
	 */
	static {
		CODEC = new URLCodec(EncodingConstants.UTF_8);
	}

	public final static URLCodec getURLCodec() {
		return CODEC;
	}
}
